<template>
<div class="home-skeleton-top">
  <div class="top_content">
    <Skeleton :bg="'#e4e4e4'" width="200px" height="40px" :animated="true" />
    <Skeleton :bg="'#e4e4e4'" width="350px" height="25px" :animated="true" />
  </div>
  <div class="home-skeleton">
    <div class="item" v-for="i in 4" :key="i" :style="{ backgroundColor: bg }">
      <Skeleton :bg="'#e4e4e4'" width="306px" height="306px" :animated="true" />
      <Skeleton :bg="'#e4e4e4'" width="160px" height="24px" :animated="true" />
      <Skeleton :bg="'#e4e4e4'" width="120px" height="24px" :animated="true" />
    </div>
  </div>
</div>

</template>

<script>
import Skeleton from '../skeleton/skeleton.vue';

export default {
  name: 'HomeSkeleton',
  components: {
    Skeleton
  },
  data() {
    return {
      bg: '#fff'
    };
  }
}
</script>

<style scoped lang="scss">
.home-skeleton-top{
  margin: 0 auto;
  width: 1240px;
  // display: flex;
  .top_content{
    display: flex;
    margin-top: 16px;
    // justify-content: flex-start;
    // align-items: center;
    align-items: flex-end;
       >>> .skeleton {
      // display: block;
      margin-right: 10px;
    }
  }

}
.home-skeleton {
  width: 1240px;
  height: 406px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  .item {
    width: 306px;
    >>> .skeleton {
      display: block;
      margin: 16px auto 0;
    }
  }
}
</style>
